Skip to content

feat: add --platforms flag support to flutter_app template#1620

Merged
marcossevilla merged 2 commits into
mainfrom
vgv-ai-bot/issue-1617
Jun 22, 2026
Merged

feat: add --platforms flag support to flutter_app template#1620
marcossevilla merged 2 commits into
mainfrom
vgv-ai-bot/issue-1617

Conversation

@very-good-code-bot

Copy link
Copy Markdown
Contributor

Summary

Adds support for the --platforms command-line flag to the flutter_app template, allowing developers to specify which platform directories (Android, iOS, macOS, Web, Windows) should be generated during project creation.

Changes

  • Added --platforms multi-option flag to CreateFlutterApp command
  • Defaults to all platforms when not specified: android, ios, macos, web, windows
  • Allows granular control via CLI: --platforms=android,ios
  • Updated help text with per-platform descriptions
  • Passes selected platforms to template variables
  • Added comprehensive test coverage including:
    • Default behavior (all platforms)
    • Custom platform selection
    • Updated usage documentation

Testing

  • New test case for custom platform selection
  • Updated existing tests to include platform variables
  • Usage documentation reflects new flag and options

Closes #1617

Closes #1617

Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
@marcossevilla

Copy link
Copy Markdown
Member

converting to draft until flutter_app template is bumped to the newer version that supports --platforms

@marcossevilla marcossevilla marked this pull request as draft June 19, 2026 10:17
@marcossevilla marcossevilla marked this pull request as ready for review June 22, 2026 11:49
@marcossevilla marcossevilla merged commit 11bd085 into main Jun 22, 2026
22 checks passed
@marcossevilla marcossevilla deleted the vgv-ai-bot/issue-1617 branch June 22, 2026 11:50
@vgvbot vgvbot mentioned this pull request Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add --platforms flag support to flutter_app template

1 participant